PATH![]() |
![]() ![]() |
Creates a window from parameter data.
pascal OSStatus CreateNewWindow (
WindowClass windowClass,
WindowAttributes attributes,
const Rect *bounds,
WindowPtr *outWindow);
The CreateNewWindow function creates a window based on the attributes and class you specify in the attributes and windowClass parameters. CreateNewWindow sets the new window's content region to the size and location specified by the rectangle passed in the bounds parameter, which in turn determines the dimensions of the entire window. The Window Manager creates the window invisibly and places it at the front of the window list. After calling CreateNewWindow , you should set any desired associated data--using Window Manager or Control Manager accessor functions--then call the function TransitionWindow to display the window. See Creating a Window for a sample application-defined window-creation function.